package com.example.jzg.mvpdemo.model;
/**
 * author: gcc
 * date: 2016/12/2 17:55
 * email:
 */

import com.example.jzg.mvpdemo.base.AppContext;
import com.example.jzg.mvpdemo.baserx.RxSchedulers;
import com.example.jzg.mvpdemo.bean.LoginBean;
import com.example.jzg.mvpdemo.contract.LoginContract;

import java.util.Map;

import rx.Observable;

/**
 * author: guochen
 * date: 2016/12/2 17:55
 * email: 
 */
public class LoginModel implements LoginContract.ContractLoginModel {
    @Override
    public Observable<LoginBean> login(Map<String,String> params) {
        return AppContext.httpService.login(params).compose(RxSchedulers.<LoginBean>io_main());
    }

}
